package cn.edu.scau.cmi.xiehaizhou.composite.consistent;

import java.util.ArrayList;
import java.util.List;

import cn.edu.scau.cmi.xiehaizhou.composite.consistent.Organization;
import cn.edu.scau.cmi.xiehaizhou.composite.consistent.OrganizationOrPerson;

public abstract class OrganizationOrPerson {
	protected String name;
	protected Organization fatherOrganization;
	protected List<OrganizationOrPerson> childrenList = new ArrayList<OrganizationOrPerson>();
	//只读访问器
	public String getName()
	{
		return name;
	}
	public Organization getFatherOrganization()
	{
		return fatherOrganization;
	}
	public abstract boolean AddPerson(String name);
	public abstract boolean AddOrganization(String name);
	public abstract void Delete(String name);
	public abstract List<String> getChildren();
}
